package PhamVanHien;

public class ArrayModels02 {

	public int TB(int[] myList){
		int tbc = 0;
		int sum = 0;
		for(int i = 0 ; i< myList.length; i++){
			sum+= myList[i];
			tbc = sum/(myList.length);
		}
		return tbc;
	}
	
	public double TB1(double[] myList1){
		double tbc1 = 0;
		double sum1 = 0;
		for(int i = 0; i<myList1.length; i++){
			sum1 += myList1[i];
			tbc1 = sum1/(myList1.length);
		}
		return tbc1;
	}
}
